# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openresolv
pkgver=3.13.2
pkgrel=1
pkgdesc="A framework for managing DNS information"
url="https://roy.marples.name/projects/openresolv"
arch="noarch"
license="BSD-2-Clause"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/NetworkConfiguration/openresolv/archive/refs/tags/v$pkgver.tar.gz
	detect_init-remove-irrelevant.patch
	"
options="!check"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--rundir=/run \
		--sysconfdir=/etc
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
5471178db5336f2d6ae08b1baf0fb45b76f0eb8fa313f25f3beb360749c87897b69d835c64733ee4ec18f72150259e4ba79cfe13dd69e5ff65a7e5b50f543136  openresolv-3.13.2.tar.gz
4532f62530c8922f91ca9bb78b1fdb8f68801b0a4643af5e1a57faa7b1640e0b453c8603040c2a3315bbf1ee0c4f39c6fe696fde3ec9569d61a0ed086b3afaaa  detect_init-remove-irrelevant.patch
"
